<!DOCTYPE html>
<html>
	<?
	include 'web/header.phtml';
	?>
	<body>

		<?
		include 'web/body.header.phtml';
		include 'web/body.menu.phtml';
		?>

		<div id="page">

			<?
			include 'web/body.banner.phtml';
			?>

			<div id="content2">
				<div class="box" id="box3">
					<h2 class="title2">Cart Detail</h2>
					<div class="entry">						
						<div style="clear: both; margin-bottom: 20px;"></div>
						<ul class="list2">

							<?php
							if (count($products) == 0) {
								echo $mess;
								echo "<br /><br />There is no any Product in Cart";
							} else {
								foreach ($products as $product) {
									echo '
                                <li>
                                    <div class="product" id="' . $product[ProductID] . '">                                       
                                        <div class="product-img">
                                            <a href="index.php?view=product&ProductID=' . $product[ProductID] . '" ><img src=web/images/product/thumb/thumb_' . $product[ImageName] . '></a>
                                        </div>
                                        <div class="product-con">
                                             <h2>' . $product[Name] . '</h2>
                                             <p>Id: ' . $product[ProductID] . '</p>
                                             <p>Cat:   ' . $product[Category] . '</p>
                                             <p>Quantity:    ' . $product[Quantity] . '<p>
                                             <p>Price: ' . $product[Price] . '$</p>
                                             <p>Total: ' . $product[TotalPrice] . '.00$</p>
                                             <input type=text style="width:22px;" value="1" id="' . $product[ProductID] . '"/>
                                            <button ' . $stt . ' onclick=removefromcart(' . $product[ProductID] . ')>Remove</button>
                                        </div>                                        
                                    </div>
                                </li>  ';
								}
							}
							?>
						</ul>
						<a class='button' href="cart.php?do=bill"><span>View Cart</span></a>
					</div>
				</div>
			</div>

		</div>

		<?
		include 'web/body.wrapper.phtml';
		?>
	</body>
</html>